﻿package com.lynn.salary.entity;
/**
 * 员工角色中间表
 * @author xdb
 *
 */
public class EmpRole {
	private String id;
	private String empId;
	private String roleId;

	/**
	 * 获取所有字段
	 * 
	 * @return
	 */
	public static String[] getFields() {

		return new String[] { "id","empId", "roleId" };
	}

	/**
	 * 获取表名
	 * 
	 * @return
	 */
	public static String getTableName() {

		return "emprole";
	}

	/**
	 * 获取主键名字
	 * 
	 * @return
	 */
	public static String getPkName() {

		return "id";
	}

	public static Object[] getFk(String field) {
		if (field.equals("empId")) {
			return new Object[] { User_.class, "id" };
		} else if (field.equals("roleId")) {
			return new Object[] { Role.class, "id" };
		} else
			return null;
	}

	public String getEmpId() {
		return empId;
	}

	public void setEmpId(String empId) {
		this.empId = empId;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

}
